<script setup>
import { ref,reactive } from 'vue'


const data =reactive({
  img:
  [{url:'https://www.gloshine.cn/include/upload/kind/image/20230215/20230215110422_5103.jpg'},
  {url:'https://www.gloshine.cn/include/upload/kind/image/20200320/20200320165314_6914.jpg'}]
},


)


</script>

<template>
<div style="height: 600px;">
  <el-carousel  height="600px" :interval="5000" arrow="always">
    <el-carousel-item v-for="item in data.img" :key="item">
      <img style="width: 100%; height: 100%;" :src="item.url" alt="">
     
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<style scoped>
/* .el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
  text-align: center;
} */

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
